package com.itheima.commons.model.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.List;

/**
 * 朋友圈发布表
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "quanzi_publish")
public class Publish implements Serializable {
    //主键id
    @Id
    private ObjectId id;
    //发布id
    private Long pid;
    //发布用户id
    private Long userId;
    //文字
    private String text;
    //媒体数据，图片或小视频 url
    private List<String> medias;
    // 谁可以看，1-公开，2-私密，3-部分可见，4-不给谁看
    private Integer seeType;
    //部分可见的列表
    private List<Long> seeList;
    //不给谁看的列表
    private List<Long> notSeeList;
    //经度
    private String longitude;
    //纬度
    private String latitude;
    //位置名称
    private String locationName;
    //发布时间
    private Long created;

    private int status ;

    private int topState;

    private Long opsUserId;

    private Long opsDatetime;
}